package test3_25.demo09;

public class JudgePalindromes {

    public void judgePalindromes(String num){

        StringBuilder sb = new StringBuilder(num);
        sb.reverse();
        if (num.equals(sb.toString())){
            System.out.println("是回文");
        }else {
            System.out.println("不是回文");
        }
    }
}
